package com.example.jib.mapper;

import com.example.jib.pojo.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author lihuazeng
 * @version Id: UserMapper.java, v 0.1 2019-11-5 12:54 lihuazeng Exp $$
 */
@Component
public class UserMapper {
    @Value("${u.name}")
    private String name;

    public User user(){
        return new User(name, 18);
    }
}